﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucSearchProduct.ascx.cs" Inherits="Ecreate.Web.usercontrol.ucSearchProduct" %>
<script type="text/javascript">
    function search() {
        var txt = document.getElementById("search-word").value;
        if (txt == "") return false;
        var o = document.getElementById("search-option").options;
        var s = "";
        for (var i = 0; i < o.length; i++) {
            if (o[i].selected == true) { s = o[i].value; break; }
        }
        var url = '/pages/ProductList.aspx?type=sc&cl=' + s + "&txt=" + txt;
        window.open(url);
    }
</script>
<select id="search-option" style="width:75px;"><option value="c1">产品大类</option><option value="c2">产品小类</option><option value="nm">产品名称</option></select>
<input id="search-word" type="text"/>
<input id="do-search" class="submit" type="button" value="搜索" onclick="search();" />

